<template>
  <div class="data-container">
    <div class="title">热门活动 TOP1</div>
    <div class="vote-info">
      {{ hotVoteTop.voteTitle }}
      <span class="votes">({{ hotVoteTop.votes }}票)</span>
    </div>
  </div>
</template>

<script setup>
import { ref, onMounted } from "vue";
// import { FireFilled } from '@element-plus/icons-vue';
import { hotVoteTop1 } from "@/api/business/dashboard";
const hotVoteTop = ref({});

// 获取数据
onMounted(async () => {
  hotVoteTop1().then((response) => {
    hotVoteTop.value = response.data;
  });
});
</script>

<style scoped>
.data-container {
  margin-left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 120px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
  box-sizing: border-box;
}
.title {
  font-size: 14px;
  color: #666;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}
.vote-info {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.votes {
  color: #165dff;
  
}
</style>
